<template>
  <div class="crm-layout">
    <router-view v-slot="{ Component }">
      <transition name="fade-transform"
mode="out-in">
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </transition>
    </router-view>
  </div>
</template>

<script setup lang="ts">
  // CRM模块布局组件，用于承载所有CRM子路由
</script>

<style scoped>
  .crm-layout {
    height: 100%;
    width: 100%;
  }

  /* 页面切换动画 */
  .fade-transform-enter-active,
  .fade-transform-leave-active {
    transition: all 0.3s;
  }

  .fade-transform-enter-from {
    opacity: 0;
    transform: translateX(-30px);
  }

  .fade-transform-leave-to {
    opacity: 0;
    transform: translateX(30px);
  }
</style>
